str = "qwertyuasdfghjklpoiuyrewqqzxcvbnnm"
str1 = ""
if "f" in str :
    print("包含f")
    str1 = str1 + "f"
else:
    print("不包含f")
if "r" in str :
    print("包含r")
    str1 = str1 + "r"
else:
    print("不包含r")
if "i" in str :
    print("包含i")
    str1 = str1 + "i"
else:
    print("不包含i")
if "e" in str :
    print("包含e")
    str1 = str1 + "e"
else:
    print("不包含e")
if "n" in str :
    print("包含n")
    str1 = str1 + "n"
else:
    print("不包含n")
if "d" in str :
    print("包含d")
    str1 = str1 + "d"
else:
    print("不包含d")

print(str1)

str.count("f");
strArr = [str.count("f"),str.count("r"),str.count("i"),str.count("e"),str.count("n"),str.count("d")]
num1 = 0
num2 = 0
num3 = 0

for num in (0 ,len(strArr) - 2) :
    num1 = strArr[num]
    num2 = strArr[num + 1]
    if num1 < num2 :
        num3 = num1
    else:
        num3 = num2
print(num3)